package jk.wrapper.config;

import java.util.ArrayList;
import java.util.List;

import jk.wrapper.filters.NodeFilter;

public class AttributeConfig {
	private String propId;
	private String attrId;
	private String field;
	private String defValue;
	private int col;
	private boolean isEmpty;
	private List<NodeFilter> nodeFilterList = new ArrayList<NodeFilter>();
	
	public AttributeConfig(String propId, String attrId, String field, int col) {
		this.propId = propId;
		this.attrId = attrId;
		this.field = field;
		this.col = col;
	}
	
	public AttributeConfig(String propId, String attrId, String field, int col, boolean isEmpty, String defValue) {
		this.propId = propId;
		this.attrId = attrId;
		this.field = field;
		this.col = col;
		this.isEmpty = isEmpty;
		this.defValue = defValue;
	}

	public String getPropId() {
		return this.propId;
	}
	
	public String getAttrId() {
		return attrId;
	}

	public String getField() {
		return field;
	}

	public int getCol() {
		return col;
	}

	public boolean isEmpty() {
		return isEmpty;
	}
	
	public String getDefValue() {
		return this.defValue;
	}

	public List<NodeFilter> getNodeFilterList() {
		return nodeFilterList;
	}
	
	public void addNodeFilter(NodeFilter filter) {
		this.nodeFilterList.add(filter);
	}
	
	public List<NodeFilter> getNodeFilter() {
		return this.nodeFilterList;
	}
}
